package com.xjj.order.service;

import com.xjj.order.feign.StockServiceFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

/**
 * @author zhanghejie
 * @date 2020/7/24 15:47
 */
@Service
public class OrderService {

    @Autowired
    private StockServiceFeign StockServiceFeign;

    public String createOrder(Integer num) {
        System.out.println("===创建订单===");
        StockServiceFeign.reduce(num);
        return "创建订单成功";
    }

}
